projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbed0b
)
Avoid uninitialized variables
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 13 Jun 2015 21:57:19 +0000
(17:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 14 Jun 2015 01:10:26 +0000
(21:10 -0400)
clang complains that these may be used uninitialized.
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index f767e14969b2e219da90650afc322fe7f34f090a..0255ed15f971ae0c4b10fd6b1dc1ed124af56b42 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-1701,8
+1701,8
@@
start_drop_feedback (GtkPlacesSidebar *sidebar,
GtkTreeIter iter;
GtkTreeIter iter_prev;
GtkTreePath *path_prev;
- gint new_bookmark_col_index;
- SectionType section_type;
+ gint new_bookmark_col_index
= 0
;
+ SectionType section_type
= SECTION_BOOKMARKS
;
/* Use column index of previous bookmark to calculate index for "new bookmark" */
path_prev = gtk_tree_path_new_from_indices (sidebar->new_bookmark_index - 1, -1);